/*
 * Created on 2006-3-14
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.hitrust.gs.vo;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;
import com.hitrust.gs.service.GSBaseManager;

/**
 * @author simonyi
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class GSPayReceiveListVO implements GSBaseBean {

    public String workcorpid;
    public String deptname;
    public String feetypeno;
    public String feetypenoValue;
    public String paytype;
    public String balanceundone;
    public String paydate;
    public String principal;
    public String balancemonth;
    public String offsetdate;
    public String receiveableid;
    
    public Object process(ResultSet aResultSet) throws SQLException {
        GSPayReceiveListVO vo = new GSPayReceiveListVO();
        
        vo.receiveableid = aResultSet.getString("P0");
        vo.workcorpid = aResultSet.getString("P1");
        vo.deptname = aResultSet.getString("P2");
        vo.paytype = aResultSet.getString("P3");
        vo.feetypeno = aResultSet.getString("P4");
        vo.feetypenoValue = aResultSet.getString("P9")==null?GSBaseManager.getPreFeeTypeName(aResultSet.getString("P4")):aResultSet.getString("P9");
        vo.balanceundone = aResultSet.getString("P5");
        vo.paydate = aResultSet.getString("P6");
        vo.principal = aResultSet.getString("P7");
        vo.balancemonth = aResultSet.getString("P8");
        vo.offsetdate = aResultSet.getString("P10");
        
        return vo;
    }

}
